﻿<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="SlideTabList.ascx.cs"
    Inherits="ud_Article.UI.SlideTabLoader" %>
<%@ Import Namespace="ud_Article.UI" %>
<div class="blogwrapper">
    <asp:Panel ID="divblog" runat="server" CssClass="blogcenter-rightnav" SkinID="plain">
        <ul>
            <asp:Repeater ID="rptTabs" runat="server">
                <ItemTemplate>
                    <li><a href='<%# "#" + Eval("ItemID") + ModuleId %>'>
                        <asp:Literal ID="litHeading" runat="server" EnableViewState="false" Text='<%# ArticleUtils.FormatBlogTitle(Eval("Heading").ToString(), Config.MaxNumberOfCharactersInTitleSetting) %>' />
                    </a>
                        <asp:Panel ID="pnlTabsPost" runat="server" Visible='<%# !Config.TitleOnly %>' CssClass="post">
                            <div class="blogtext">
                                <div class="image-wrapper">
                                    <asp:Image ID="tabsImage1" runat="server" ImageUrl='<%# "~/" + ConfigurationManager.AppSettings["ArticleImagesFolder"] + Eval("ImageUrl") %>'
                                        Visible='<%# ArticleUtils.CheckImageUrl(Eval("ImageUrl").ToString()) && Config.ShowImage %>'
                                        ToolTip='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' />
                                </div>
                                <div class="body">
                                    <%# ArticleUtils.FormatBlogEntry(Eval("Description").ToString(), Eval("Abstract").ToString(), Config)%></div>
                            </div>
                            <div class="bloghit">
                                <portal:TweetThisLink ID="tt1Tabs" runat="server" Visible='<%# Config.ShowTweetThisLink && Config.SocialInMainArticle %>'
                                    UrlToTweet='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId) %>'
                                    TitleToTweet='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' />
                                <portal:FacebookLikeButton ID="fbl1Tabs" runat="server" Visible='<%# Config.UseFacebookLikeButton && Config.SocialInMainArticle %>'
                                    UrlToLike='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId) %>'
                                    ColorScheme='<%# Config.FacebookLikeButtonTheme %>' ShowFaces='<%# Config.FacebookLikeButtonShowFaces %>'
                                    WidthInPixels='<%# Config.FacebookLikeButtonWidth %>' HeightInPixels='<%# Config.FacebookLikeButtonHeight %>' />
                                <portal:FacebookShareButton ID="fbs1Tabs" runat="server" Visible='<%# Config.UseFacebookShareButton && Config.SocialInMainArticle %>'
                                    Url='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId) %>'
                                    Title='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' ImgUrl='<%# ImageSiteRoot + "/Data/Icon16x16/facebook.png" %>' />
                                <portal:GoogleBookmarkButton ID="gbb1Tabs" runat="server" Visible='<%# Config.UseGoogleBookmarkButton && Config.SocialInMainArticle %>'
                                    Url='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId) %>'
                                    Title='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' ImgUrl='<%# ImageSiteRoot + "/Data/Icon16x16/google.png" %>' />
                            </div>
                        </asp:Panel>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
        <div class="tempdiv">
        </div>
        <asp:Repeater ID="rptBlogs" runat="server" SkinID="Blog" EnableViewState="False">
            <ItemTemplate>
                <div id='<%# Eval("ItemID").ToString() + ModuleId %>'>
                    <asp:Panel ID="pnlBlogItem" runat="server" CssClass="blogitem">
                        <asp:Panel ID="pnlPost" runat="server" Visible='<%# !Config.TitleOnly %>' CssClass="post">
                            <div class="blogtext">
                                <div class='<%# "hideme mojo-dialog " + ModuleId + Eval("ItemID") %>' title='<%# Eval("Heading") %>'>
                                    <asp:Image ID="image2" runat="server" ImageUrl='<%# ArticleUtils.FormatImageDialog(ConfigurationManager.AppSettings["ArticleImagesFolder"], Eval("ImageUrl").ToString()) %>'
                                        Visible='<%# Config.ShowImage %>' CssClass='<%# "rimg" + ModuleId + Eval("ItemID") %>' />
                                </div>
                                <div class="image-wrapper">
                                    <a href='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId, Config.UseOverrideUrl, Eval("OverrideUrl").ToString()) %>' target='<%# ArticleUtils.CheckTargetTitleUrl(Config.UseOverrideUrl) %>'>
                                        <asp:Image ID="image1" runat="server" ImageUrl='<%# ArticleUtils.FormatImageDialog(ConfigurationManager.AppSettings["ArticleImagesFolder"], Eval("ImageUrl").ToString()) %>'
                                            Visible='<%# Config.ShowImage %>' CssClass='<%# "img" + ModuleId + Eval("ItemID") %>'
                                            ToolTip='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' />
                                    </a>
                                </div>
                                <asp:Literal ID="ltrScriptDialog" runat="server" Visible='<%# Config.UseImageDialog %>'
                                    Text='<%# ArticleUtils.FormatDialogScript(ModuleId.ToString(), Eval("ItemID").ToString()) %>' />
                                <span class="blogtitle">
                                    <asp:HyperLink SkinID="BlogTitle" ID="lnkTitle" runat="server" EnableViewState="false"
                                        CssClass="heading" ToolTip='<%# Eval("Heading") %>' Text='<%# ArticleUtils.FormatBlogTitle(Eval("Heading").ToString(), Config.MainSlideTitleMaxChar) %>'
                                        Visible='<%# Config.UseLinkForHeading %>' NavigateUrl='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId, Config.UseOverrideUrl, Eval("OverrideUrl").ToString()) %>' Target='<%# ArticleUtils.CheckTargetTitleUrl(Config.UseOverrideUrl) %>'>
                                    </asp:HyperLink><asp:Literal ID="litTitle" runat="server" Text='<%# ArticleUtils.FormatBlogTitle(Eval("Heading").ToString(), Config.MainSlideTitleMaxChar) %>'
                                        Visible='<%# !Config.UseLinkForHeading %>' />&nbsp;
                                    <asp:HyperLink ID="editLink" runat="server" EnableViewState="false" Text="<%# EditLinkText %>"
                                        ToolTip="<%# EditLinkTooltip %>" ImageUrl='<%# EditLinkImageUrl %>' NavigateUrl='<%# BuildEditUrl(Convert.ToInt32(Eval("ItemID"))) %>'
                                        Visible="<%# IsEditable && !Config.ShowEditInPost %>" CssClass="ModuleEditLink" /></span>
                                <div class="blogdate">
                                    <span class="blogauthor">
                                        <%# FormatPostAuthor(DataBinder.Eval(Container.DataItem, "UserGuid").ToString())%></span>
                                    <span class="bdate">
                                        <%# FormatBlogDate(Convert.ToDateTime(Eval("StartDate"))) %></span>
                                </div>
                                <div class="body">
                                    <asp:HyperLink ID="hplEditPost" runat="server" EnableViewState="false" Text="<%# EditLinkText %>"
                                        ToolTip="<%# EditLinkTooltip %>" ImageUrl='<%# EditLinkImageUrl %>' NavigateUrl='<%# BuildEditUrl(Convert.ToInt32(Eval("ItemID"))) %>'
                                        Visible="<%# IsEditable && Config.ShowEditInPost %>" CssClass="ModuleEditLink" />
                                    <%# ArticleUtils.FormatSlideArticle(Eval("Description").ToString(), Eval("Abstract").ToString(), Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), Config, SiteRoot, PageId, ModuleId)%></div>
                            </div>
                            <div class="bloghit">
                                <portal:TweetThisLink ID="tt1" runat="server" Visible='<%# Config.ShowTweetThisLink && Config.SocialInMainArticle %>'
                                    UrlToTweet='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId) %>'
                                    TitleToTweet='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' />
                                <portal:FacebookLikeButton ID="fbl1" runat="server" Visible='<%# Config.UseFacebookLikeButton && Config.SocialInMainArticle %>'
                                    UrlToLike='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId) %>'
                                    ColorScheme='<%# Config.FacebookLikeButtonTheme %>' ShowFaces='<%# Config.FacebookLikeButtonShowFaces %>'
                                    WidthInPixels='<%# Config.FacebookLikeButtonWidth %>' HeightInPixels='<%# Config.FacebookLikeButtonHeight %>' />
                                <portal:FacebookShareButton ID="fbs1" runat="server" Visible='<%# Config.UseFacebookShareButton && Config.SocialInMainArticle %>'
                                    Url='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId) %>'
                                    Title='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' ImgUrl='<%# ImageSiteRoot + "/Data/Icon16x16/facebook.png" %>' />
                                <portal:GoogleBookmarkButton ID="gbb1" runat="server" Visible='<%# Config.UseGoogleBookmarkButton && Config.SocialInMainArticle %>'
                                    Url='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId) %>'
                                    Title='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' ImgUrl='<%# ImageSiteRoot + "/Data/Icon16x16/google.png" %>' />
                            </div>
                        </asp:Panel>
                    </asp:Panel>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <asp:Panel ID="pnlMoreLink" runat="server" CssClass="morelinksettings">
            <div class="more-link-l">
            </div>
            <div class="more-link-m">
                <asp:HyperLink ID="hplMoreLink" runat="server" />
            </div>
            <div class="more-link-r">
            </div>
        </asp:Panel>
        <div class="cleared">
        </div>
    </asp:Panel>
    <div class="blogcopyright">
        <asp:Label ID="lblCopyright" runat="server" />
    </div>
</div>
